<template>
  <div class="fragments">
    <headerWrap></headerWrap>

    <div class="container-wrap">
      <div class="container-y" style="overflow: hidden">
        <div class="search-wrap">
          <div class="search-m" @click="searchShow(!WrapShow)">
            <i class="iconfont icon-fangdajing b-i"></i>
            搜索
          </div>
        </div>
        <div class="pull-wrap pull-wrap1">
          <div id="pending" class="mescroll">
            <ul class="data-list-wrap" id="mp" v-if="pendingList.length">
              <li class="d-item"
                  v-for="item in pendingList"
                  v-if="item.title"
                  @tap="go_details(item)">
                <div class="i-img">
                  <i class="iconfont icon-xxgl"></i>
                </div>
                <div class="i-content">
                  <div class="i-title">
                    {{item.title}}
                  </div>
                  <div class="i-time">
                    <span class="redColor">{{infoType}}</span> {{item.createtime}}
                  </div>
                </div>
              </li>
            </ul>
            <noDataWrap v-if="noDataWrapShow && !pendingList.length"></noDataWrap>
          </div>
        </div>
      </div>
    </div>

    <transition name="slideRight">
      <router-view></router-view>
    </transition>

    <transition name="fadeShow">
      <div class="container-wrap container-wrap1"
           v-show="WrapShow"
           @click.prevent="searchShow(!WrapShow)">
        <transition name="slideDownAndSlideUp">
          <div v-show="show">
            <div class="search-wrap" @click.stop="">
              <div class="search-m">
                <i class="iconfont icon-fangdajing"></i>
                <input type="text"
                       placeholder="搜索"
                       class="s-input"
                       id="sc"
                       @input="inputValue">
              </div>
              <div class="cancel-s" @click.stop="searchShow(false)">取消</div>
            </div>

            <div class="d-item-wrap d-item-wrap1">
              <div class="d-content">
                <div class="item" @click.stop="typePick">
                  <div class="label">
                    类型
                  </div>
                  <div class="txt">
                    <input class="input-c"
                           type="text"
                           :value="listTypePicked.text"
                           readonly>
                  </div>
                </div>
                <div class="item" @click.stop="_timePick(1)">
                  <div class="label">
                    开始时间
                  </div>
                  <div class="txt">
                    <input class="input-c" type="text"
                           :value="beginTime.text"
                           readonly>
                  </div>
                </div>
                <div class="item" @click.stop="_timePick(2)">
                  <div class="label">
                    结束时间
                  </div>
                  <div class="txt">
                    <input class="input-c" type="text"
                           :value="endTime.text"
                           readonly>
                  </div>
                </div>
                <div class="item" @click.stop="">
                  <div class="label">
                    语音匹配
                  </div>
                  <div class="txt" @click.stop="vSearch(1,$event)">
                    <span class="voice-s" @click.stop="vSearch(2,$event)"> 点击开始匹配</span>
                    <voice-txt-area :isSearch="'true'"></voice-txt-area>
                  </div>
                </div>
              </div>
            </div>

            <div class="btn-wrap">
              <div class="btn-b" @click.stop="searchSubmit">
                搜索
              </div>
            </div>
          </div>
        </transition>
      </div>
    </transition>

  </div>
</template>

<script>
  import workReportList from "./workReportList.js"

  export default workReportList
</script>

<style scoped lang="scss">
  .container-wrap1 {
    z-index: 99;
    background-color: rgba(255, 255, 255, .88);
  }

  .d-item-wrap1 {
    .item {
      display: flex;
      &:before {
        left: 0 !important;
      }
      .txt {
        flex: 1;
        text-align: right;
      }
    }
    .voice-s {
      -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
      padding-right: 18px;
      font-size: 14px;
      color: #7a7a7a;
    }
    .voice-icon-wrap {
      position: absolute;
      top: -4px;
      right: -6px;
    }
  }

  .search-wrap {
    display: flex;
    .search-m {
      flex: 1;
    }
    .cancel-s {
      width: 36px;
      color: #4593f4;
      line-height: 29px;
      font-size: 14px;
      text-align: right;
      font-weight: 600;
    }
  }

  .pull-wrap1 {
    height: 100%;
  }

  .search-wrap{
    background-color: #e9e9e9;
    .search-m{
      border-radius: 6px;
      border-bottom: 1px solid #d8d8d8;
      background-color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }
</style>
